$(function(){
	var swiper = new Swiper('.swiper-container', {
	    pagination: '.swiper-pagination',
	    slidesPerView: 1,
	    paginationClickable: true,
	    spaceBetween: 30,
	    loop: true,
	    autoplay:1000
	});
	
	$('.invite').click(function(){
		window.location.href = "invite.html";
	})
	
	$('.weal').click(function(){
		window.location.href = "weal.html";
	})
	
	$('.brand').click(function(){
		window.location.href = "brand.html";
	})
	
	$('.word').click(function(){
		window.location.href = "word.html";
	})
	
	$('.classify').click(function(){
		window.location.href = "classify.html";
	})
	
	$('.order').click(function(){
		window.location.href = "myoder.html";
	})
	
	$('.shou').click(function(){
		window.location.href = "collect.html";
	})
	
	$('.news').click(function(){
		window.location.href = "news.html";
	})
	
	$(window).scroll(function() {
		var iTop = $(window).scrollTop();
		if(iTop >= $('.m-list_bottom>li:first-child').height()) {
			$('.m-list_top').css("position","fixed");
			$('#gotop').fadeIn();
		} else {
			$('.m-list_top').css("position","");
			$('#gotop').fadeOut();
		}
	});
	$('#gotop').click(function() {
		$('body,html').animate({
			"scrollTop": 0
		},400)
	})
	var app = new Vue({
		el:"#app",
		data:{
			list:['全部','鞋类','服饰','最新','包配','儿童'],
			tabIndex:0,
			opts:[
				{
					cd:0,
					id:1,
					optsimgs:"../images/index-imgs/index-img_21.png",
					title:"卡骆驰 初秋鞋履细赏",
					discount:"两双7折"
				},{
					cd:0,
					id:1,
					optsimgs:"../images/index-imgs/index-img_23.png",
					title:"鞋品热促抢回街道",
					discount:"2.5折起"
				},{
					cd:0,
					id:1,
					optsimgs:"../images/index-imgs/index-img_25.png",
					title:"鬼冢虎复古鞋",
					discount:"4第二双150"
				},{
					cd:0,
					id:1,
					optsimgs:"../images/index-imgs/index-img_27.png",
					title:"满100减20上不封顶",
					discount:"4.7折起"
				},{
					cd:0,
					id:1,
					optsimgs:"../images/index-imgs/index-img_29.png",
					title:"卡骆驰 初秋鞋履细赏",
					discount:"两双7折"
				},{
					cd:0,
					id:2,
					optsimgs:"../images/index-imgs/index-img_31.png",
					title:"探路者秋冬抢鲜",
					discount:"满3件8折"
				},{
					cd:0,
					id:2,
					optsimgs:"../images/index-imgs/index-img_33.png",
					title:"艾格清仓直降",
					discount:"29元封顶"
				},{
					cd:0,
					id:2,
					optsimgs:"../images/index-imgs/index-img_35.png",
					title:"品牌特惠 回纯经典",
					discount:"99元起"
				},{
					cd:0,
					id:2,
					optsimgs:"../images/index-imgs/index-img_21.png",
					title:"鬼冢虎复古鞋",
					discount:"4第二双150"
				},{
					cd:0,
					id:2,
					optsimgs:"../images/index-imgs/index-img_23.png",
					title:"斯凯奇运动系列",
					discount:"199元起"
				},{
					cd:0,
					id:2,
					optsimgs:"../images/index-imgs/index-img_25.png",
					title:"断码清仓 低价扫货",
					discount:"35元起"
				},{
					cd:0,
					id:3,
					optsimgs:"../images/index-imgs/index-img_27.png",
					title:"马克华菲早秋特惠",
					discount:"15元起"
				},{
					cd:0,
					id:3,
					optsimgs:"../images/index-imgs/index-img_29.png",
					title:"马克华菲早秋特惠",
					discount:"15元起"
				},{
					cd:0,
					id:3,
					optsimgs:"../images/index-imgs/index-img_31.png",
					title:"马克华菲早秋特惠",
					discount:"15元起"
				},{
					cd:0,
					id:3,
					optsimgs:"../images/index-imgs/index-img_33.png",
					title:"马克华菲早秋特惠",
					discount:"15元起"
				},{
					cd:0,
					id:3,
					optsimgs:"../images/index-imgs/index-img_35.png",
					title:"马克华菲早秋特惠",
					discount:"15元起"
				},{
					cd:0,
					id:4,
					optsimgs:"../images/index-imgs/index-img_21.png",
					title:"马克华菲早秋特惠",
					discount:"15元起"
				},{
					cd:0,
					id:4,
					optsimgs:"../images/index-imgs/index-img_23.png",
					title:"马克华菲早秋特惠",
					discount:"15元起"
				},{
					cd:0,
					id:4,
					optsimgs:"../images/index-imgs/index-img_25.png",
					title:"马克华菲早秋特惠",
					discount:"15元起"
				},{
					cd:0,
					id:4,
					optsimgs:"../images/index-imgs/index-img_27.png",
					title:"马克华菲早秋特惠",
					discount:"15元起"
				},{
					cd:0,
					id:4,
					optsimgs:"../images/index-imgs/index-img_29.png",
					title:"马克华菲早秋特惠",
					discount:"15元起"
				},{
					cd:0,
					id:5,
					optsimgs:"../images/index-imgs/index-img_31.png",
					title:"马克华菲早秋特惠",
					discount:"15元起"
				},{
					cd:0,
					id:5,
					optsimgs:"../images/index-imgs/index-img_33.png",
					title:"马克华菲早秋特惠",
					discount:"15元起"
				},{
					cd:0,
					id:5,
					optsimgs:"../images/index-imgs/index-img_35.png",
					title:"马克华菲早秋特惠",
					discount:"15元起"
				},{
					cd:0,
					id:5,
					optsimgs:"../images/index-imgs/index-img_21.png",
					title:"马克华菲早秋特惠",
					discount:"15元起"
				},{
					cd:0,
					id:5,
					optsimgs:"../images/index-imgs/index-img_23.png",
					title:"马克华菲早秋特惠",
					discount:"15元起"
				},{
					cd:0,
					id:5,
					optsimgs:"../images/index-imgs/index-img_25.png",
					title:"马克华菲早秋特惠",
					discount:"15元起"
				},{
					cd:0,
					id:5,
					optsimgs:"../images/index-imgs/index-img_27.png",
					title:"马克华菲早秋特惠",
					discount:"15元起"
				},{
					cd:0,
					id:5,
					optsimgs:"../images/index-imgs/index-img_29.png",
					title:"马克华菲早秋特惠",
					discount:"15元起"
				}
			]
		}
	})
})
